package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.pojo.ApArticle;
import com.heima.model.article.pojo.ArticleHomeDto;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.commons.net.nntp.Article;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     * 加载文章列表
     * @param dto
     * @param type 1 加载更多   2记载最新
     * @return
     */
    public List<ApArticle>loadArticleList(@Param("dto") ArticleHomeDto dto,@Param("type") Short type);
}
